package org.modbusPorject.service;

/**
 * @BelongsProject: study
 * @BelongsPackage: org.modbusPorject.service
 * @Author: zhangzhanheng
 * @CreateTime: 2022-09-26  10:08
 * @Description: TODO
 * @Version: 1.0
 */
public interface ModbusEventListener {
    int[] readHoldingRegisterRange(int offset, int quantity);

    int[] readInputRegisterRange(int offset, int quantity);

    void onWriteToSingleCoil(int address, boolean value);

    void onWriteToMultipleCoils(int address, int quantity, boolean[] values);

    void onWriteToSingleHoldingRegister(int address, int value);

    void onWriteToMultipleHoldingRegisters(int address, int quantity, int[] values);

}
